using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class CorpseManager : MonoBehaviour 
{
	
	private List<GameObject> CorpseList;
	
	// Use this for initialization
	void Start () 
	{
		CorpseList = new List<GameObject>();
	}
	
	// Update is called once per frame
	void Update () 
	{
		
	}
	
	public void addCorpse(GameObject go)
	{
		CorpseList.Add(go);
	}
	
	public void deleteAllCorpse()
	{
		foreach(GameObject go in CorpseList)
			Destroy(go);
		CorpseList.Clear();
	}
}
